<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Sokoban2011:  Fichier source de /home/hady/sokoban2011/trunk/src/sdlJeu.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Généré par Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="annotated.html"><span>Structures&nbsp;de&nbsp;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Recherche" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Liste&nbsp;des&nbsp;fichiers</span></a></li>
      <li><a href="globals.html"><span>Portée&nbsp;globale</span></a></li>
    </ul>
  </div>
<h1>/home/hady/sokoban2011/trunk/src/sdlJeu.h</h1><a href="sdl_jeu_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef _SDLJEU_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define _SDLJEU_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="preprocessor">#include &lt;SDL/SDL.h&gt;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;SDL/SDL_ttf.h&gt;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;SDL/SDL_image.h&gt;</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;<a class="code" href="_jeu_8h.html" title="Jeu brief description Description du Fichier Jeu&amp;lt; &amp;gt;">Jeu.h</a>&quot;</span>
<a name="l00012"></a>00012 
<a name="l00013"></a><a class="code" href="sdl_jeu_8h.html#abad9ad5ae94fd56569e71c156349030b">00013</a> <span class="preprocessor">#define TAILLE_BLOC         34 </span>
<a name="l00014"></a><a class="code" href="sdl_jeu_8h.html#a01cb7dc76a1e51a042090caecfd96f41">00014</a> <span class="preprocessor">#define NB_NIVEAU         7 </span>
<a name="l00028"></a>00028 <span class="preprocessor">enum {HAUT, BAS, GAUCHE, DROITE};</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span>
<a name="l00058"></a><a class="code" href="structsdl_jeu.html">00058</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>
<a name="l00059"></a>00059 {
<a name="l00060"></a>00060         <a class="code" href="struct_jeu.html">Jeu</a> jeu;
<a name="l00061"></a>00061         <span class="keywordtype">int</span> niveau_jeu;
<a name="l00062"></a>00062         <span class="keywordtype">int</span> score_jeu;
<a name="l00063"></a>00063         
<a name="l00064"></a>00064         SDL_Surface* surface_ecran;
<a name="l00065"></a>00065         SDL_Surface* surface_sokoban[4] ; 
<a name="l00066"></a>00066         SDL_Surface* surface_sokobanActuel;
<a name="l00067"></a>00067         SDL_Surface* surface_mur;
<a name="l00068"></a>00068         SDL_Surface* surface_caisse;
<a name="l00069"></a>00069         SDL_Surface* surface_caisseOk;
<a name="l00070"></a>00070         SDL_Surface* surface_objectif;
<a name="l00071"></a>00071         SDL_Surface* surface_de_fond;
<a name="l00072"></a>00072         SDL_Surface* surface_de_fond_droit;
<a name="l00073"></a>00073         SDL_Surface *surface_score;
<a name="l00074"></a>00074 
<a name="l00075"></a>00075         SDL_Rect pos_niveau_offset;
<a name="l00076"></a>00076         SDL_Rect pos_niveau_boutton;
<a name="l00077"></a>00077         
<a name="l00079"></a>00079         TTF_Font* police_texte;
<a name="l00080"></a>00080         
<a name="l00081"></a>00081 } <a class="code" href="structsdl_jeu.html">sdlJeu</a>;
<a name="l00082"></a>00082 
<a name="l00083"></a>00083 
<a name="l00084"></a>00084 
<a name="l00085"></a>00085 
<a name="l00091"></a>00091 <span class="keywordtype">void</span> sdljeuInit(<a class="code" href="structsdl_jeu.html">sdlJeu</a> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *);
<a name="l00092"></a>00092 
<a name="l00093"></a>00093 
<a name="l00101"></a>00101 <span class="keywordtype">void</span> sdljeuBoucle(<a class="code" href="structsdl_jeu.html">sdlJeu</a> *, <span class="keywordtype">int</span> *);
<a name="l00102"></a>00102 
<a name="l00109"></a>00109 <a class="code" href="struct_jeu.html">Jeu</a> *sdlJeuGetJeuPtr(<a class="code" href="structsdl_jeu.html">sdlJeu</a> *);
<a name="l00110"></a>00110 
<a name="l00116"></a>00116 <span class="keywordtype">void</span> sdljeuDetruit(<a class="code" href="structsdl_jeu.html">sdlJeu</a> *);
<a name="l00117"></a>00117 
<a name="l00122"></a>00122 <span class="keywordtype">void</span> sdlJeuTestRegression();
<a name="l00123"></a>00123 
<a name="l00124"></a>00124 <span class="preprocessor">#endif</span>
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Structures de données</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Définition de type</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Généré le Tue Jun 7 02:52:12 2011 pour Sokoban2011 par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
